% -*- mode: erlang; -*- vim: set ft=erlang:
[{elvis, [
    {config, [
        #{ dirs => ["src/**"],
           filter => "*.erl",
           ruleset => erl_files,
           rules => [{elvis_style, atom_naming_convention, #{
                            ignore => [locus_mmdb,
                                       locus_mmdb_data_codec]
                     }},
                     {elvis_style, dont_repeat_yourself, #{
                            ignore => [locus_mmdb_tree,
                                       locus_util]
                     }},
                     {elvis_style, macro_names, disable},
                     {elvis_style, no_if_expression, disable},
                     {elvis_style, no_throw, #{
                            ignore => [locus_custom_fetcher,
                                       locus_mmdb_data_codec,
                                       locus_shared_bitarray]
                     }} ]},
        #{ dirs => ["test/**"],
           filter => "*.erl",
           ruleset => erl_files,
           rules => [{elvis_style, dont_repeat_yourself, disable},
                     {elvis_style, invalid_dynamic_call, disable},
                     {elvis_style, no_debug_call, disable},
                     {elvis_style, no_nested_try_catch, disable},
                     {elvis_style, used_ignored_variable, disable},
                     {elvis_text_style, line_length, #{ limit => 100 }}] },
        #{ dirs => ["."],
           filter => "rebar.config",
           ruleset => rebar_config },
        #{ dirs => ["."],
           filter => "elvis.config",
           ruleset => elvis_config }
    ]},
    {verbose, false}
]}].
